﻿using UnityEngine;
using System.Collections;
using Helper;

namespace Lost{
	public enum CurvesType{
		LINE,
		TWEEN,
		PARABOLIC,
		SIN
	}


	public class GizmosManager : MonoBehaviour {
		public static void DrawCurves(Vector3[] nodes, CurvesType curvesType){
			switch (curvesType) {
			case CurvesType.LINE:
				GizmosManager.DrawLine (nodes);
				break;
			case CurvesType.TWEEN:
				MyTween.DrawPath (nodes);
				break;
			case CurvesType.PARABOLIC:
				
				break;
			case CurvesType.SIN:
				break;
			default:
				break;
			}
		}

		public static void DrawLine(Vector3[] nodes){
			if (nodes == null) {
				return;
			}
			for (int i = 0; i < nodes.Length - 1; i++) {
				Gizmos.DrawLine (nodes [i], nodes [i + 1]);
			}
		}
	}
}
